Skip to content

Conversation

@Siilwyn
Copy link
Contributor

@Siilwyn Siilwyn commented Feb 6, 2022

Closes #68

  • Switches from require > import
  • Updated all dependencies
  • Follow new xo and tsd rules
  • Remove namespace from type definition file

Also changed the default export to be a named function, since xo complained about exporting a default anonymous function and I think it is better, opinionated. Let me know what you think!

This is a breaking change, drops support for older Node.js versions.

@Siilwyn Siilwyn changed the title Make the package a ES module type Make the package an ES module type Feb 6, 2022
@sindresorhus sindresorhus changed the title Make the package an ES module type Move to ESM Feb 13, 2022
@sindresorhus sindresorhus merged commit 19e7a3c into sindresorhus:main Feb 13, 2022
@Siilwyn Siilwyn deleted the go-esm branch February 14, 2022 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ESM build to support imports from .mjs files

2 participants